//引入自定义hook
import usePosition from '@/hooks/usePosition'
export default ()=>{
    const position=usePosition()
    return (<>
        <div style={{
            position:'absolute',
            left:position.x,
            top:position.y,
            width:'30px',
            height:'30px',
            backgroundColor:'red',
            borderRadius:'100%',
            transform:'translate(-50%,-50%)'
        }}>

        </div>
    </>)
}